package com.car.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import com.car.order.dto.goodOrderInfo.GoodsInfoDetail;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 董旭
 * @since 2024-08-28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName(value = "good_order_info",autoResultMap = true)
public class GoodOrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "good_order_id", type = IdType.AUTO)
    private String goodOrderId;

    @TableField("user_id")
    private Integer userId;

    @TableField("user_phone")
    private String userPhone;

    /**
     * 收货人姓名
     */
    @TableField("consignee_name")
    private String consigneeName;

    /**
     * 收货人电话
     */
    @TableField("consignee_phone")
    private String consigneePhone;

    /**
     * 收h货地址
     */
    @TableField("address")
    private String address;

    /**
     * 订单生成时间
     */
    @TableField("order_creat_time")
    private String orderCreatTime;

    /**
     * 订单付款时间
     */
    @TableField("order_pay_time")
    private String orderPayTime;

    /**
     * 订单状态0待支付 1待收货 2待评价 3待售后 4已取消 5已完成
     */
    @TableField("order_state")
    private Integer orderState;

    /**
     * 订单总价
     */
    @TableField("money")
    private BigDecimal money;

    /**
     * 订单详情
     */
    @TableField(value = "order_detail",typeHandler = com.car.order.config.ListTypeHandler.class)
    private List<GoodsInfoDetail> orderDetail;


}
